<template>
    <view>
        <view class="time_contain">
            <view class="section">
                <text>门店营业时间</text>
                <view class="centers">
                    <text>10:00-23:00</text>
                    <image class="icon-32" :src="imgUrl + 'right.png'"></image>
                </view>
            </view>
        </view>
        <view class="time_contain">
            <view class="section">
                <text>选择营业周期</text>
            </view>
            <view class="section_cycle">
                <view class="section_cycle_checked">周一</view>
                <view class="section_cycle_nochecked">周二</view>
                <view class="section_cycle_nochecked">周三</view>
                <view class="section_cycle_nochecked">周四</view>
                <view class="section_cycle_nochecked">周五</view>
                <view class="section_cycle_checked">周六</view>
                <view class="section_cycle_nochecked">周日</view>
            </view>
        </view>
        <view class="time_contain">
            <view class="section">
                <text>门店工位数量</text>
                <view class="centers">
                    <text>12</text>
                    <image class="icon-32" :src="imgUrl + 'right.png'"></image>
                </view>
            </view>
        </view>
        <view class="time_contain">
            <view class="section">
                <text>选择可提供的服务项目</text>
            </view>
            <view class="section_cycle">
                <view class="section_cycle_checked">洗剪吹</view>
                <view class="section_cycle_nochecked">洗护</view>
                <view class="section_cycle_nochecked">烫发</view>
                <view class="section_cycle_nochecked">染发</view>
                <view class="section_cycle_nochecked">护理</view>
                <view class="section_cycle_checked">调色</view>
                <view class="section_cycle_nochecked">拉直</view>
            </view>
        </view>
        <view class="addbtn" @tap="onAdd">确定</view>
    </view>
</template>

<script>
// pages/yidou/index.js
const app = getApp(); // 引入app

const _request = require('../../utils/request.js'); // 引入require;

export default {
    data() {
        return {
            imgUrl: app.globalData.imgUrl,
            //全局img路径
            hiddenmodalput: true
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {},
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {
        onAdd() {
            console.log('占位：函数 onAdd 未声明');
        }
    }
};
</script>
<style>
.time_contain {
    display: flex;
    flex-direction: column;
    margin: 30rpx;
    border-radius: 10rpx;
    background-color: #fff;
}

.section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 30rpx;
    color: #333333;
}

.section_content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border: 1px #ccc solid;
    padding: 5rpx 10rpx;
}

.section_content image {
    width: 40rpx;
    height: 40rpx;
    margin: 10rpx;
}

.section_cycle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 35rpx 35rpx 35rpx;
}

.section_cycle_nochecked {
    display: flex;
    flex-direction: row;
    width: 100rpx;
    height: 48rpx;
    font-size: 28rpx;
    color: #999999;
    border: 1px #ccc solid;
    border-radius: 10rpx;
    margin: 10rpx;
    justify-content: center;
    align-items: center;
}

.section_cycle_checked {
    display: flex;
    flex-direction: row;
    width: 100rpx;
    height: 48rpx;
    font-size: 28rpx;
    color: #ffffff;
    border-radius: 10rpx;
    margin: 10rpx;
    justify-content: center;
    align-items: center;
    background-color: #ff8722;
}

.rest {
    font-size: 23rpx;
    color: #777;
}

.cycle {
    font-size: 28rpx;
    color: #fff;
}

.picker {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80rpx;
    font-size: 32rpx;
    color: #666;
    padding: 5rpx;
    margin: 10rpx;
}

.to {
    font-size: 25rpx;
    color: #555;
    margin: 10rpx;
}

.triangle-up {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 5px solid #666;
    margin: 8rpx;
}

.addbtn {
    width: 690rpx;
    height: 90rpx;
    background: #ff8722;
    border-radius: 45rpx;
    font-size: 36rpx;
    font-family: PingFang SC;
    font-weight: 500;
    color: #f3f3f3;
    line-height: 90rpx;
    text-align: center;
    margin: 300rpx 30rpx 0 30rpx;
    position: absolute;
    bottom: 50rpx;
}

page {
    background-color: #fbfbfb;
}
</style>
